import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

// https://vitejs.dev/config/
export default defineConfig({
  server: {
    proxy: {
      '/api': {
        target: 'http://localhost:3001',
        changeOrigin: true,
        secure: false,
        logLevel: 'debug'
      },
      '/audio': {
        target: 'http://localhost:3001',
        changeOrigin: true,
        logLevel: 'debug'
      }
    }
  },
  plugins: [vue()]
});
